﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_Promotions_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h1 class="cufon">
        <acms:PostDisplayName ID="PostDisplayName1" runat="server"/>
    </h1>
    <acms:HtmlContentControlDisplay ID="HtmlContentControlDisplay1" ControlName="Text Area" runat="server" />

<div class="clearfix" style="padding:0 44px 0 47px;">
    <div class="clearfix" style="position:relative; width:533px;" >
        <acms:ImageContentControlDisplay runat="server" ControlName="Promotion Image" CssClass="PromotionImage"  />
        <%--<asp:Image ID="Image1" ImageUrl="~/Images/test_promotion.jpg" CssClass="PromotionImage" runat="server" />--%>
        
        <%--<asp:HyperLink ID="PdfDownload" CssClass="PdfDownload" runat="server" Text="Download" />--%>
    </div>
    <acms:PdfContentControlDisplay ID="PdfContentControlDisplay1"  runat="server" CssClass="PdfDownload" Target="_blank" ControlName="Promotion PDF Download" />    
</div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div class="PromoRcol">
        <asp:PlaceHolder ID="phDetails" runat="server">
        <h3 class="cufon">Your Information</h3>
        <acms:HtmlContentControlDisplay runat="server" ControlName="Promotion Form Text" />
        
        <ul class="form">
            <li>
                <asp:Label ID="lblFirstName" AssociatedControlID="txtFirstName" CssClass="formLabel" runat="server" Text="First Name"/>
                <asp:RequiredFieldValidator ControlToValidate="txtFirstName" runat="server" ErrorMessage="Please Check" CssClass="errorMessage" EnableClientScript="true"/>
                <asp:TextBox ID="txtFirstName" CssClass="formInput" runat="server"/>
            </li>
            <li>
                <asp:Label ID="lblSurname" AssociatedControlID="txtSecondName" CssClass="formLabel" runat="server" Text="Surname" />
                <asp:RequiredFieldValidator ControlToValidate="txtSecondName" runat="server" ErrorMessage="Please Check" CssClass="errorMessage" EnableClientScript="true"/>
                <asp:TextBox ID="txtSecondName" CssClass="formInput" runat="server"/>
            </li>
            <li>
                <asp:Label ID="lblEmail" AssociatedControlID="txtEmail" runat="server" CssClass="formLabel" Text="Email" />
                <asp:RequiredFieldValidator ControlToValidate="txtEmail" runat="server" ErrorMessage="Please Check" CssClass="errorMessage" EnableClientScript="true"/>
                <asp:RegularExpressionValidator ValidationExpression="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z+])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$" ID="valEmailAddressFormat" ControlToValidate="txtEmail" ErrorMessage="Invalid Email" CssClass="errorMessage" Display="Dynamic" runat="server" />
                <asp:TextBox ID="txtEmail" CssClass="formInput" runat="server" />
            </li>
            <li>
                <asp:Label ID="Label1" AssociatedControlID="txtEmailCompare" runat="server" CssClass="formLabel" Text="Confirm your Email" />
                
                <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtEmailCompare" runat="server" ErrorMessage="Please Check" CssClass="errorMessage"/>--%>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtEmailCompare" runat="server" ErrorMessage="Please Check" CssClass="errorMessage" EnableClientScript="true"/>
                <asp:CompareValidator ControlToCompare="txtEmail" ControlToValidate="txtEmailCompare" Operator="Equal" CssClass="errorMessage" EnableClientScript="true" ErrorMessage="Please Check Email" runat="server" />
                
                <asp:TextBox ID="txtEmailCompare" CssClass="formInput" runat="server" />
            </li>
            <li>
                <asp:Label ID="lblPhone" AssociatedControlID="txtPhone" CssClass="formLabel" runat="server" Text="Phone Number" />
                <asp:TextBox ID="txtPhone" CssClass="formInput" runat="server" />
            </li>
            <li>
                <asp:Button runat="server" Text="Submit" CssClass="formButton" ID="btnSubmit" OnClick="btnSubmit_Click" />
            </li>
        </ul>
        </asp:PlaceHolder>
        <asp:PlaceHolder ID="phConfirmation" Visible="false" runat="server">
            <h3 class="cufon">Thank you</h3>
        </asp:PlaceHolder>
    </div>
</asp:Content>